

import pickle

class Bird(object):
    have_feather = True
    way_of_reproduction = 'egg'

summer = Bird()
fn = 'a.pkl'
with open(fn, 'w') as f:
    picklestring = pickle.dump(summer,f)



